package design_mode.装饰者.服饰;

import design_mode.装饰者.服饰.BigTrouser;
import design_mode.装饰者.服饰.Person;
import design_mode.装饰者.服饰.Strawhat;
import design_mode.装饰者.服饰.TShirst;

public class PrintLn {
    public static void main(String[] args) {
        Person person = new Person("邓平");
        System.out.println("第一种装扮：");

        TShirst tShirst = new TShirst();
        tShirst.decorate(person);

        BigTrouser bigTrouser = new BigTrouser();
        bigTrouser.decorate(tShirst);

        Strawhat strawhat = new Strawhat();
        strawhat.decorate(bigTrouser);
        strawhat.show();
    }
}
